/**
 * Created by admin on 2017/5/19.
 */
import {
  ChubIndex,
  ChubAct,
  ChubDetail,
  ChutCommentsList,
  ChutGoods
} from '../mutation-types';
import * as getters from '../getters/chub';
import * as actions from '../actions/chub';
const state = {
  chubIndex: {},
  chubAct: {},
  chubDetail: {},
  chutCommentsList: [],
  chutGoods: []
};

const mutations = {
  [ChubIndex] (state, data) {
    state.chubIndex = data;
  },
  [ChubAct] (state, data) {
    state.chubAct = data;
  },
  [ChubDetail] (state, data) {
    state.chubDetail = data;
    // console.log(state.chubDetail)
  },
  [ChutCommentsList] (state, data) {
    state.chutCommentsList = data;
  },
  [ChutGoods] (state, data) {
    state.chutGoods = data;
  }
};
export default{
  state,
  getters,
  actions,
  mutations
};
